#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
int tonum(char ch)
{
	return ch - 'a' + 1;
}
int main()
{
	int sum;
	char str[1000 + 5];
	while (scanf("%s", str) != EOF)
	{
		sum = 0;
		for (int i = 0; i < strlen(str); i++)sum += tonum(str[i]);
		cout << sum << endl;
	}
	return 0;
}